<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code">
	<x:out select="$xmlData/data/proposal/grant_code" />
</c:set>
<c:set var="sub_grant_code">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>
<div class="t_bar"><span class="color_red">*</span>项目经济指标（单位：万元）</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="economic_indicator">
	<thead>
		<tr>
			<th class="TblHead" align="center">年度</th>
			<th class="TblHead" align="center">专利产品产值</th>
			<th class="TblHead" align="center">专利产品销售额</th>
			<th class="TblHead" align="center">专利产品净利润</th>
			<th class="TblHead" align="center">专利产品纳税额</th>
			<th class="TblHead" align="center" nowrap>占企业销售额比例（%）</th>
			<th class="TblHead" align="center">国内市场占有率（%）</th>
		</tr>
	</thead>
	<tr>

		<td align="center">上年度</td>

		<td align="center"><input id="last_patent_cz"
			name="economic_indicator/last_patent_cz" label="上年度专利产品产值"
			type="text" class="input_text required " style="text-align: right; width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/last_patent_cz" />" />
		</td>

		<td align="center"><input id="last_patent_sale"
			name="economic_indicator/last_patent_sale" label="上年度专利产品销售额"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/last_patent_sale" />" />
		</td>

		<td align="center"><input id="last_patent_profit"
			name="economic_indicator/last_patent_profit" label="上年度专利产品净利润"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/last_patent_profit" />" />
		</td>
		<td align="center"><input id="last_patent_taxes"
			name="economic_indicator/last_patent_taxes" label="上年度专利产品纳税额"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/last_patent_taxes" />" />
		</td>
		<td align="center"><input id="last_patent_sale_percent"
			name="economic_indicator/last_patent_sale_percent"
			label="上年度占企业销售额比例" type="text" class="input_text required "
			style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,7,2,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/last_patent_sale_percent" />" />
		</td>
		<td align="center"><input id="last_patent_market_percent"
			name="economic_indicator/last_patent_market_percent"
			label="上年度国内市场占有率" type="text" class="input_text required "
			style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,7,2,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/last_patent_market_percent" />" />
		</td>
	</tr>
	<tr>

		<td align="center" nowrap>本年度预计</td>

		<td align="center"><input id="this_patent_cz"
			name="economic_indicator/this_patent_cz" label="本年度预计专利产品产值"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/this_patent_cz" />" />
		</td>

		<td align="center"><input id="this_patent_sale"
			name="economic_indicator/this_patent_sale" label="本年度预计专利产品销售额"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/this_patent_sale" />" />
		</td>

		<td align="center"><input id="this_patent_profit"
			name="economic_indicator/this_patent_profit" label="本年度预计专利产品净利润"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/this_patent_profit" />" />
		</td>
		<td align="center"><input id="this_patent_taxes"
			name="economic_indicator/this_patent_taxes" label="本年度预计专利产品纳税额"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/this_patent_taxes" />" />
		</td>
		<td align="center"><input id="this_patent_sale_percent"
			name="economic_indicator/this_patent_sale_percent"
			label="本年度预计占企业销售额比例" type="text" class="input_text required "
			style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,7,2,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/this_patent_sale_percent" />" />
		</td>
		<td align="center"><input id="this_patent_market_percent"
			name="economic_indicator/this_patent_market_percent"
			label="本年度预计国内市场占有率" type="text" class="input_text required "
			style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,7,2,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/this_patent_market_percent" />" />
		</td>
	</tr>
	<tr>

		<td align="center" nowrap>下一年度目标</td>

		<td align="center"><input id="next_patent_cz"
			name="economic_indicator/next_patent_cz" label="下一年度目标专利产品产值"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/next_patent_cz" />" />
		</td>

		<td align="center"><input id="next_patent_sale"
			name="economic_indicator/next_patent_sale" label="下一年度目标专利产品销售额"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/next_patent_sale" />" />
		</td>

		<td align="center"><input id="next_patent_profit"
			name="economic_indicator/next_patent_profit" label="下一年度目标专利产品净利润"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/next_patent_profit" />" />
		</td>
		<td align="center"><input id="next_patent_taxes"
			name="economic_indicator/next_patent_taxes" label="下一年度目标专利产品纳税额"
			type="text" class="input_text required " style="text-align: right;width:80%"
			onfocus="InitInput.setNumber(this,7,4,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/next_patent_taxes" />" />
		</td>
		<td align="center"><input id="next_patent_sale_percent"
			name="economic_indicator/next_patent_sale_percent"
			label="下一年度目标占企业销售额比例" type="text" class="input_text required "
			style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,7,2,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/next_patent_sale_percent" />" />
		</td>
		<td align="center"><input id="next_patent_market_percent"
			name="economic_indicator/next_patent_market_percent"
			label="下一年度目标国内市场占有率" type="text" class="input_text required "
			style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,7,2,2,this.id,true)"
			value="<x:out select="$xmlData/data/economic_indicator/next_patent_market_percent" />" />
		</td>
	</tr>
</table>
<br>

<div class="t_bar"><span class="color_red">*</span>项目资金投入情况（单位：万元）</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="invest_detail">
	<thead>
		<tr>
			<th class="TblHead" align="center" rowspan='2'>计划投资总额</th>
			<th class="TblHead" align="center" rowspan='2'>已完成的投资额</th>
			<th class="TblHead" align="center" colspan="3">计划需继续完成的投资额</th>
		</tr>
		<tr>
			<th class="TblHead" align="center">继续投资总额</th>
			<th class="TblHead" align="center">企业自筹</th>
			<th class="TblHead" align="center">申请政府资助</th>

		</tr>
	</thead>

	<tr>

		<td align="center"><input id="invest_total"
			name="budget/invest_detail/total" label="计划投资总额" type="text" 
			class="input_text gray"
			style="text-align: right;" disabled maxlength="50"
			onfocus="InitInput.setNumber(this,7,4,2)"
			value="<x:out select="$xmlData/data/budget/invest_detail/total" />" />
		</td>

		<td align="center">
			<input id="invest_finish_seft"
			name="budget/invest_detail/finish_seft" label="已完成的投资额" type="text"
			class="input_text required " style="text-align: right;"
			maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
			onchange="countFundAuto('invest_','need_seft,need_country','finish_country');countFundAuto('invest_','finish_country,finish_seft','total');"
			value="<x:out select="$xmlData/data/budget/invest_detail/finish_seft" />" />
		</td>

		<td align="center"><input id="invest_finish_country"
			name="budget/invest_detail/finish_country" label="继续投资总额" type="text"
			class="input_text required gray" disabled style="text-align: right;"
			maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
			onchange="countFundAuto('invest_','need_seft,need_country','finish_country');countFundAuto('invest_','finish_country,finish_seft','total');"
			value="<x:out select="$xmlData/data/budget/invest_detail/finish_country" />" />
		</td>

		<td align="center"><input id="invest_need_seft"
			name="budget/invest_detail/need_seft" label="企业自筹" type="text"
			class="input_text required " style="text-align: right;"
			maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
			onchange="countFundAuto('invest_','need_seft,need_country','finish_country');countFundAuto('invest_','finish_country,finish_seft','total');"
			value="<x:out select="$xmlData/data/budget/invest_detail/need_seft" />" />
		</td>


		<td align="center"><input id="invest_need_country"
			name="budget/invest_detail/need_country" label="申请政府资助" type="text"
			class="input_text required " style="text-align: right;"
			maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
			onchange="countFundAuto('invest_','need_seft,need_country','finish_country');countFundAuto('invest_','finish_country,finish_seft','total');"
			value="<x:out select="$xmlData/data/budget/invest_detail/need_country" />" />
		</td>
	</tr>
</table>
<br>

<div class="t_bar">
	<span class="color_red">*</span>项目资金使用计划（单位：万元）
</div>
<table class="t_css table01 " width="100%" border="0" cellpadding="0"
	id="tblfinancialplans" cellspacing="1">
	<thead>

		<tr>
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="15%">开始时间</th>
			<th class="TblHead" align="center" width="15%">结束时间</th>
			<th class="TblHead" align="center" width="30%">资金用途</th>
			<th class="TblHead" align="center" width="15%">资助资金</th>
			<th class="TblHead" align="center" width="15%">自筹资金</th>

		</tr>

	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio"
				class="radiobutton" name="selfinancialplans">
			</td>
			<td align="center"><span
				name="financialplans|financialplan[0]@seq_no">[index]</span>
			</td>
			<td align="center"><input
				id="financialplan_start_date_[0]"
				name="financialplans|financialplan[0]|start_date" label="开始时间"
				value=""
				class="input_text date required dateCompare:financialplan_end_date_[0]"
				style="width: 60%" />
			</td>
			<td align="center">&nbsp;<input id="financialplan_end_date_[0]"
				name="financialplans|financialplan[0]|end_date" label="结束时间"
				value="" class="input_text date required" style="width: 60%" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="financialplans|financialplan[0]|use" class="input_text required"
				maxlength=200 label="资金用途" value="" style="width: 80%" />
			</td>
			<td style="text-align: center;"><input type="text"
				size="35" name="financialplans|financialplan[0]|support_budget"
				class="input_text required" style="text-align: right; width: 80%"
				label="资助资金" value="" onfocus="InitInput.setNumber(this,7,4,2)" />
			</td>
			<td style="text-align: center;"><input type="text"
				size="35" name="financialplans|financialplan[0]|self_budget"
				class="input_text required" style="text-align: right; width: 80%"
				label="自筹资金" value="" onfocus="InitInput.setNumber(this,7,4,2)" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/financialplans/financialplan"
			var="financialplan">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><input type="radio"
					class="radiobutton" name="selfinancialplans">
				</td>
				<td align="center"><span
					name="financialplans/financialplan[${flag}${index}]@seq_no">${index+1}</span>
				</td>
				<td align="center"><c:set var="start_date" scope="page">
						<x:out select="$financialplan/start_date" />
					</c:set><input id="financialplan_start_date_[${flag}${index}]"
					value="${start_date}" label="开始时间"
					name="financialplans/financialplan[${flag}${index}]/start_date"
					class="date required input_text dateCompare:financialplan_end_date_[${flag}${index}]"
					style="width: 70px" />
				</td>
				<td align="center"><c:set var="end_date" scope="page">
						<x:out select="$financialplan/end_date" />
					</c:set> <input id="financialplan_end_date_[${flag}${index}]"
					name="financialplans/financialplan[${flag}${index}]/end_date"
					label="结束时间" value="${end_date}" class=" date input_text required"
					style="width: 70px" />
				</td>
				<td style="text-align: center;"><input type="text"
					name="financialplans/financialplan[${flag}${index}]/use"
					class="input_text required" maxlength=200 label="资金用途" style="width: 200px"
					value="<x:out select="$financialplan/use" />" />
				</td>
				<td style="text-align: center;"><input type="text"
					name="financialplans/financialplan[${flag}${index}]/support_budget"
					class="input_text required" label="资助资金" size="35"
					style="text-align: right; width: 100px"
					onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$financialplan/support_budget" />" />
				</td>
				<td style="text-align: center;"><input type="text"
					name="financialplans/financialplan[${flag}${index}]/self_budget"
					class="input_text required" label="自筹资金" size="35"
					style="text-align: right; width: 100px"
					onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$financialplan/self_budget" />" />
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("tblfinancialplans");
		</script>
	</tbody>
</table>
<br>
<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="addNewRow('tblfinancialplans');showDateTag('tblfinancialplans');try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移"
			onclick="movePrev('tblfinancialplans','selfinancialplans')">
			<input class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblfinancialplans','selfinancialplans')">
			<input class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblfinancialplans','项目资金使用计划')"></td>
	</tr>
</table>

<br>

<script type="text/javascript">
	
</script>
